package customer.zspt.cn.customer.Widget;

import android.content.Context;
import android.util.AttributeSet;
import android.view.View;
import android.widget.RelativeLayout;
import android.widget.TextView;

import com.lidroid.xutils.ViewUtils;
import com.lidroid.xutils.view.annotation.ViewInject;

import customer.zspt.cn.customer.R;

/**
 * Created by Administrator on 2018/7/18 0018.
 */

public class OrderContentItemView extends RelativeLayout {
    @ViewInject(R.id.title)
    private TextView title;
    @ViewInject(R.id.content)
    private TextView content;

    public OrderContentItemView(Context context) {
        this(context,null);
    }

    public OrderContentItemView(Context context, AttributeSet attrs) {
        this(context, attrs,0);
    }
    public OrderContentItemView(Context context, AttributeSet attrs, int defStyleAttr) {
        super(context, attrs, defStyleAttr);
        View.inflate(context, R.layout.order_content_item,this);
        ViewUtils.inject(this);
    }
   public void setTitle(String titleSt) {
        title.setText(titleSt);
    }
    public void setContent(String contentSt)
    {
        content.setText(contentSt);
    }

}
